/*
 * XML Type:  XTableVPolicy
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XTableVPolicy
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core.impl;
/**
 * An XML XTableVPolicy(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public class XTableVPolicyImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements com.seedwill.xul.core.XTableVPolicy
{
    private static final long serialVersionUID = 1L;
    
    public XTableVPolicyImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ENABLEHEADER$0 = 
        new javax.xml.namespace.QName("", "enableHeader");
    private static final javax.xml.namespace.QName HEADERPERCENT$2 = 
        new javax.xml.namespace.QName("", "headerPercent");
    private static final javax.xml.namespace.QName HEADERHEIGHT$4 = 
        new javax.xml.namespace.QName("", "headerHeight");
    private static final javax.xml.namespace.QName ENABLEBOTTOM$6 = 
        new javax.xml.namespace.QName("", "enableBottom");
    private static final javax.xml.namespace.QName BOTTOMPERCENT$8 = 
        new javax.xml.namespace.QName("", "bottomPercent");
    private static final javax.xml.namespace.QName BOTTOMHEIGHT$10 = 
        new javax.xml.namespace.QName("", "bottomHeight");
    private static final javax.xml.namespace.QName HEIGHTPERCENT$12 = 
        new javax.xml.namespace.QName("", "heightPercent");
    private static final javax.xml.namespace.QName HEIGHT$14 = 
        new javax.xml.namespace.QName("", "height");
    private static final javax.xml.namespace.QName ENABLEAVGHEIGHT$16 = 
        new javax.xml.namespace.QName("", "enableAvgHeight");
    private static final javax.xml.namespace.QName AVGHEIGHT$18 = 
        new javax.xml.namespace.QName("", "avgHeight");
    
    
    /**
     * Gets the "enableHeader" element
     */
    public boolean getEnableHeader()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEHEADER$0, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "enableHeader" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetEnableHeader()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEHEADER$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enableHeader" element
     */
    public void setEnableHeader(boolean enableHeader)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEHEADER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLEHEADER$0);
            }
            target.setBooleanValue(enableHeader);
        }
    }
    
    /**
     * Sets (as xml) the "enableHeader" element
     */
    public void xsetEnableHeader(org.apache.xmlbeans.XmlBoolean enableHeader)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEHEADER$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ENABLEHEADER$0);
            }
            target.set(enableHeader);
        }
    }
    
    /**
     * Gets the "headerPercent" element
     */
    public boolean getHeaderPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEADERPERCENT$2, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "headerPercent" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetHeaderPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(HEADERPERCENT$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "headerPercent" element
     */
    public void setHeaderPercent(boolean headerPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEADERPERCENT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HEADERPERCENT$2);
            }
            target.setBooleanValue(headerPercent);
        }
    }
    
    /**
     * Sets (as xml) the "headerPercent" element
     */
    public void xsetHeaderPercent(org.apache.xmlbeans.XmlBoolean headerPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(HEADERPERCENT$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(HEADERPERCENT$2);
            }
            target.set(headerPercent);
        }
    }
    
    /**
     * Gets the "headerHeight" element
     */
    public double getHeaderHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEADERHEIGHT$4, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "headerHeight" element
     */
    public org.apache.xmlbeans.XmlDouble xgetHeaderHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(HEADERHEIGHT$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "headerHeight" element
     */
    public void setHeaderHeight(double headerHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEADERHEIGHT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HEADERHEIGHT$4);
            }
            target.setDoubleValue(headerHeight);
        }
    }
    
    /**
     * Sets (as xml) the "headerHeight" element
     */
    public void xsetHeaderHeight(org.apache.xmlbeans.XmlDouble headerHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(HEADERHEIGHT$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(HEADERHEIGHT$4);
            }
            target.set(headerHeight);
        }
    }
    
    /**
     * Gets the "enableBottom" element
     */
    public boolean getEnableBottom()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEBOTTOM$6, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "enableBottom" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetEnableBottom()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEBOTTOM$6, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enableBottom" element
     */
    public void setEnableBottom(boolean enableBottom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEBOTTOM$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLEBOTTOM$6);
            }
            target.setBooleanValue(enableBottom);
        }
    }
    
    /**
     * Sets (as xml) the "enableBottom" element
     */
    public void xsetEnableBottom(org.apache.xmlbeans.XmlBoolean enableBottom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEBOTTOM$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ENABLEBOTTOM$6);
            }
            target.set(enableBottom);
        }
    }
    
    /**
     * Gets the "bottomPercent" element
     */
    public boolean getBottomPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BOTTOMPERCENT$8, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "bottomPercent" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetBottomPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(BOTTOMPERCENT$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "bottomPercent" element
     */
    public void setBottomPercent(boolean bottomPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BOTTOMPERCENT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BOTTOMPERCENT$8);
            }
            target.setBooleanValue(bottomPercent);
        }
    }
    
    /**
     * Sets (as xml) the "bottomPercent" element
     */
    public void xsetBottomPercent(org.apache.xmlbeans.XmlBoolean bottomPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(BOTTOMPERCENT$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(BOTTOMPERCENT$8);
            }
            target.set(bottomPercent);
        }
    }
    
    /**
     * Gets the "bottomHeight" element
     */
    public double getBottomHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BOTTOMHEIGHT$10, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "bottomHeight" element
     */
    public org.apache.xmlbeans.XmlDouble xgetBottomHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(BOTTOMHEIGHT$10, 0);
            return target;
        }
    }
    
    /**
     * Sets the "bottomHeight" element
     */
    public void setBottomHeight(double bottomHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BOTTOMHEIGHT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BOTTOMHEIGHT$10);
            }
            target.setDoubleValue(bottomHeight);
        }
    }
    
    /**
     * Sets (as xml) the "bottomHeight" element
     */
    public void xsetBottomHeight(org.apache.xmlbeans.XmlDouble bottomHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(BOTTOMHEIGHT$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(BOTTOMHEIGHT$10);
            }
            target.set(bottomHeight);
        }
    }
    
    /**
     * Gets the "heightPercent" element
     */
    public boolean getHeightPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEIGHTPERCENT$12, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "heightPercent" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetHeightPercent()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(HEIGHTPERCENT$12, 0);
            return target;
        }
    }
    
    /**
     * Sets the "heightPercent" element
     */
    public void setHeightPercent(boolean heightPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEIGHTPERCENT$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HEIGHTPERCENT$12);
            }
            target.setBooleanValue(heightPercent);
        }
    }
    
    /**
     * Sets (as xml) the "heightPercent" element
     */
    public void xsetHeightPercent(org.apache.xmlbeans.XmlBoolean heightPercent)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(HEIGHTPERCENT$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(HEIGHTPERCENT$12);
            }
            target.set(heightPercent);
        }
    }
    
    /**
     * Gets array of all "height" elements
     */
    public double[] getHeightArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(HEIGHT$14, targetList);
            double[] result = new double[targetList.size()];
            for (int i = 0, len = targetList.size() ; i < len ; i++)
                result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getDoubleValue();
            return result;
        }
    }
    
    /**
     * Gets ith "height" element
     */
    public double getHeightArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEIGHT$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) array of all "height" elements
     */
    public org.apache.xmlbeans.XmlDouble[] xgetHeightArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(HEIGHT$14, targetList);
            org.apache.xmlbeans.XmlDouble[] result = new org.apache.xmlbeans.XmlDouble[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets (as xml) ith "height" element
     */
    public org.apache.xmlbeans.XmlDouble xgetHeightArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(HEIGHT$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return (org.apache.xmlbeans.XmlDouble)target;
        }
    }
    
    /**
     * Returns number of "height" element
     */
    public int sizeOfHeightArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(HEIGHT$14);
        }
    }
    
    /**
     * Sets array of all "height" element
     */
    public void setHeightArray(double[] heightArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(heightArray, HEIGHT$14);
        }
    }
    
    /**
     * Sets ith "height" element
     */
    public void setHeightArray(int i, double height)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(HEIGHT$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.setDoubleValue(height);
        }
    }
    
    /**
     * Sets (as xml) array of all "height" element
     */
    public void xsetHeightArray(org.apache.xmlbeans.XmlDouble[]heightArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(heightArray, HEIGHT$14);
        }
    }
    
    /**
     * Sets (as xml) ith "height" element
     */
    public void xsetHeightArray(int i, org.apache.xmlbeans.XmlDouble height)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(HEIGHT$14, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(height);
        }
    }
    
    /**
     * Inserts the value as the ith "height" element
     */
    public void insertHeight(int i, double height)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = 
                (org.apache.xmlbeans.SimpleValue)get_store().insert_element_user(HEIGHT$14, i);
            target.setDoubleValue(height);
        }
    }
    
    /**
     * Appends the value as the last "height" element
     */
    public void addHeight(double height)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(HEIGHT$14);
            target.setDoubleValue(height);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "height" element
     */
    public org.apache.xmlbeans.XmlDouble insertNewHeight(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().insert_element_user(HEIGHT$14, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "height" element
     */
    public org.apache.xmlbeans.XmlDouble addNewHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(HEIGHT$14);
            return target;
        }
    }
    
    /**
     * Removes the ith "height" element
     */
    public void removeHeight(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(HEIGHT$14, i);
        }
    }
    
    /**
     * Gets the "enableAvgHeight" element
     */
    public boolean getEnableAvgHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEAVGHEIGHT$16, 0);
            if (target == null)
            {
                return false;
            }
            return target.getBooleanValue();
        }
    }
    
    /**
     * Gets (as xml) the "enableAvgHeight" element
     */
    public org.apache.xmlbeans.XmlBoolean xgetEnableAvgHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEAVGHEIGHT$16, 0);
            return target;
        }
    }
    
    /**
     * Sets the "enableAvgHeight" element
     */
    public void setEnableAvgHeight(boolean enableAvgHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ENABLEAVGHEIGHT$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ENABLEAVGHEIGHT$16);
            }
            target.setBooleanValue(enableAvgHeight);
        }
    }
    
    /**
     * Sets (as xml) the "enableAvgHeight" element
     */
    public void xsetEnableAvgHeight(org.apache.xmlbeans.XmlBoolean enableAvgHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlBoolean target = null;
            target = (org.apache.xmlbeans.XmlBoolean)get_store().find_element_user(ENABLEAVGHEIGHT$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlBoolean)get_store().add_element_user(ENABLEAVGHEIGHT$16);
            }
            target.set(enableAvgHeight);
        }
    }
    
    /**
     * Gets the "avgHeight" element
     */
    public double getAvgHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AVGHEIGHT$18, 0);
            if (target == null)
            {
                return 0.0;
            }
            return target.getDoubleValue();
        }
    }
    
    /**
     * Gets (as xml) the "avgHeight" element
     */
    public org.apache.xmlbeans.XmlDouble xgetAvgHeight()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(AVGHEIGHT$18, 0);
            return target;
        }
    }
    
    /**
     * Sets the "avgHeight" element
     */
    public void setAvgHeight(double avgHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AVGHEIGHT$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AVGHEIGHT$18);
            }
            target.setDoubleValue(avgHeight);
        }
    }
    
    /**
     * Sets (as xml) the "avgHeight" element
     */
    public void xsetAvgHeight(org.apache.xmlbeans.XmlDouble avgHeight)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlDouble target = null;
            target = (org.apache.xmlbeans.XmlDouble)get_store().find_element_user(AVGHEIGHT$18, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlDouble)get_store().add_element_user(AVGHEIGHT$18);
            }
            target.set(avgHeight);
        }
    }
}
